#pragma once
/*
 * framework.
 */
#include "net.h"
#include "signals.h"

class CFrameWork : public anet::utils::CSignal {
public:
	CFrameWork() = default;
	virtual ~CFrameWork() = default;

public:
	// create all instances.
	void CreateInstances();

	// Init the framework.
	bool Init(const char *path);

	// Run tcp and pipe event.
	void Run(int count);

	// release.
	void Release();

protected:
	// initialize log module.
	bool initLog(const char *path);

private:
	// tcp listener.
	CListener m_listener;
};